import request from '@/utils/request'

// 查询商品月份列表
export function listMonth(query) {
  return request({
    url: '/shop/month/list',
    method: 'get',
    params: query
  })
}

export function listMonth2(query) {
  return request({
    url: '/shop/month/list2',
    method: 'get',
    params: query
  })
}

export function listMonth3(query) {
  return request({
    url: '/shop/month/list3',
    method: 'get',
    params: query
  })
}
// 查询商品月份详细
export function getMonth(id) {
  return request({
    url: '/shop/month/' + id,
    method: 'get'
  })
}

// 新增商品月份
export function addMonth(data) {
  return request({
    url: '/shop/month',
    method: 'post',
    data: data
  })
}

// 修改商品月份
export function updateMonth(data) {
  return request({
    url: '/shop/month',
    method: 'put',
    data: data
  })
}

// 删除商品月份
export function delMonth(id) {
  return request({
    url: '/shop/month/' + id,
    method: 'delete'
  })
}
